class foo { public bar:{id:number;} = {id:5, name:"foo"}; }